home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BBS in a Box 7
/
BBS in a Box - Macintosh - Volume VII (BBS in a Box) (January 1993).iso
/
Files
/
Prog
/
T
/
TC Prog Guide.cpt
/
picture ƒ
/
error.h
< prev
next >
Wrap
Text File
|
1990-10-07
|
666b
|
30 lines
/*
* FILE: error.h
* AUTHOR: R. Gonzalez
* CREATED: October 6, 1990
*
* Defines class for reporting errors.
*/
# ifndef error_h
# define error_h
# include "class.h"
# include <stdio.h>
/******************************************************************
* error class. Intended use: define a global Error object
* which is allocated in main(). There should be only one
* error object at a time. Error reports are written to the
* file "error.fil".
******************************************************************/
struct Error:Generic_Class
{
FILE *error_file;
boolean init(void);
virtual void report(char*);
boolean destroy(void);
};
# endif